package com.sz.sensor.module.main.presenter;

import android.os.Handler;
import android.os.Looper;

import com.sz.framework.mvp.BasePresenter;
import com.sz.sensor.module.main.LoginActivity;


public class LoginPresenter extends BasePresenter<LoginActivity> {
    public void login(String country, String mobile, String psd) {
        viewer.showLoadingDialog();
        new Handler(Looper.getMainLooper()).postDelayed(() -> {
            viewer.onLogin();
            viewer.cancelLoadingDialog();
        }, 1000);
    }
}
